package cn.mayday.designmode.Proxy;

/**
 * @author Mayday05
 * @date 2021/1/5 20:03
 */
public class ProxyPatternDemo {


    public static void main(String[] args) {
        IImage IImage = new ProxyIImage("test_10mb.jpg");

        // 图像将从磁盘加载
        IImage.display();
        System.out.println("");

        // 图像不需要从磁盘加载
        IImage.display();
    }
}
